package org.nyt.medicalstore.service;

import org.nyt.medicalstore.model.SaleRecord;
import org.nyt.medicalstore.dto.SaleStatisticsDTO;
import java.util.Date;
import java.util.List;

public interface SaleRecordService {
    SaleRecord saveSaleRecord(SaleRecord saleRecord);
    SaleRecord getSaleRecordById(Long id);
    List<SaleRecord> getAllSaleRecords();
    void deleteSaleRecord(Long id);

    // 获取销售统计
    List<SaleStatisticsDTO> getSalesStatistics(Date startDate, Date endDate);

    // 获取销售排行（按数量）
    List<SaleStatisticsDTO> getSalesRankingByQuantity(Date startDate, Date endDate);

    // 获取销售排行（按金额）
    List<SaleStatisticsDTO> getSalesRankingByAmount(Date startDate, Date endDate);
} 